<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/templates/template.xhtml"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:define name="menu_esq"></ui:define>
	<ui:define name="conteudo"></ui:define>
		<ui:define name="login"><br/>
			<div align="center">
			<h:form id="loginForm" prependId="false">
				<p:panel style="width : 380px;">
					<f:facet name="header">
						<h:outputText value="#{msg.acessoMensagem}" style="float:center;"></h:outputText>
					</f:facet>
					<p:messages globalOnly="true" rendered="true"/>
					<c:if test="${param.error != null}">
						<h:outputLabel value="#{msg.acessoLoginSenhaInvalido}" style="color:red" />
					</c:if>
	
					<h:panelGrid columns="2" style=" width : 266px;">
							<h:outputLabel value="#{msg.acessoLogin}" />
							<h:inputText id="j_username" style=" width : 185px;" />
							<h:outputLabel value="#{msg.acessoSenha}" />
							<h:inputSecret id="j_password" style=" width : 185px;" />
							<h:commandButton id="login" action="#{LoginService.doLogin}"
								value="Entrar">
							</h:commandButton>
					</h:panelGrid>
				</p:panel>
			</h:form>
			</div>
			<br />
		</ui:define>
</ui:composition>